-- GENERATED SPELL FOR [Drakkari Lancer] --


function spell0_29819(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29819', 5259, 1)
end

function spell1_29819(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(55622,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29819', 8000, 1)
end

function spell2_29819(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(58978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29819', 8000, 1)
end

function spell3_29819(pUnit, Event) --@Retaliation,Self--
pUnit:FullCastSpellOnTarget(40546,pUnit)
pUnit:RegisterEvent('Sorts_29819', 5335, 1)
end

function Sorts_29819(pUnit, Event)
local choix_sorts_29819 = math.random(0, 3)
if choix_sorts_29819 == 0 then
pUnit:RegisterEvent('spell0_29819', 1, 1)
end
if choix_sorts_29819 == 1 then
pUnit:RegisterEvent('spell1_29819', 1, 1)
end
if choix_sorts_29819 == 2 then
pUnit:RegisterEvent('spell2_29819', 1, 1)
end
if choix_sorts_29819 == 3 then
pUnit:RegisterEvent('spell3_29819', 1, 1)
end
end

function mob29819_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29819', math.random(1500, 3000), 1)
end

function mob29819_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29819_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29819_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29819, 1, 'mob29819_Action')
RegisterUnitEvent(29819, 2, 'mob29819_Leave')
RegisterUnitEvent(29819, 3, 'mob29819_Kill')
RegisterUnitEvent(29819, 4, 'mob29819_Die')
